package com.zb.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zb.annotation.NumberPattern;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author WEN
 * @Date 2024/4/12 0012
 **/
@Data
@ApiModel("工单拨打电话记录")
public class WorkCallPhoneLogVo {
    @NotNull(message = "拨打结果不能为空")
    @NumberPattern(regexp = "^(1|2|3)$", required = true, message = "拨打结果参数不合法")
    @ApiModelProperty(value = "拨打结果：1-拨打成功，2-无人接听，3-其他原因", required = true, example = "1")
    private Integer callPhoneResult;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "预约日期")
    private Date date;

    @JsonFormat(pattern = "HH:mm")
    @ApiModelProperty(value = "预约开始时间")
    private Date reservationStartTime;

    @JsonFormat(pattern = "HH:mm")
    @ApiModelProperty(value = "预约结束时间")
    private Date reservationEndTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "下次拨打电话日期")
    private Date nextCallPhoneDate;

    @Length(max = 200, message = "备注长度限制200个字符")
    @ApiModelProperty(value = "备注")
    private String remark;
}
